-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] Various fixes for TF AWS 3.0 compatibility #324
Conversation
@@ -30,7 +30,7 @@ resource "aws_lb_target_group" "service" { | |||
resource "aws_lb" "service" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing version constraint for provider "aws" in "required_providers"
@@ -56,7 +56,7 @@ resource "aws_elasticache_cluster" "default" { | |||
num_cache_nodes = 1 | |||
parameter_group_name = var.parameter_group_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [tflint] reported by reviewdog 🐶
"default.redis5.0" is default parameter group. You cannot edit it.
@@ -87,7 +87,7 @@ resource "aws_s3_bucket_public_access_block" "bucket" { | |||
module "security_headers_lambda" { | |||
source = "../aws-lambda-edge-add-security-headers" | |||
|
|||
function_name = replace("${local.website_fqdn}-static-site-security-headers", ".", "-") | |||
function_name = replace("${local.website_fqdn}-headers", ".", "-") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduce issue where this string is >64 characters long. Forces redeploy of lambda for anything already deployed with HSTS headers (which should just be a single deployment in Along), and the redeploy should be safe.
* Shorten static site lambda name * Remove unneeded bare aws provider from static site * Fix aws-ssm-params readme * Upgrade terraform-aws-modules/security-group/aws for TF 3.0 compatiblity * aws-lambda-functionaws_cloudwatch_log_group use ARN instead of manually constructing since ARN is fixed in TF AWS 3.0 * Update readmes via make docs
3683c45
to
eb30ace
Compare
@@ -81,14 +81,6 @@ data "aws_region" "current" {} | |||
data "aws_caller_identity" "current" {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data "aws_caller_identity" "current" is declared but not used
constructing since ARN is fixed in TF AWS 3.0